

/*
*方法的重载
*1.方法名相同
* 2.返回值无关 可相同 可不同
* 3.形参个数可以不同
* 4.形参类型不同
* 5.形参的顺序不同
* */

import java.util.Scanner;

public class Test {




    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        while(scan.hasNextInt()) {
            int n = scan.nextInt();
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < n; j++) {
                    if(i == j) {
                        System.out.print('*');
                    }else if(i + j + 1 == n) {
                        System.out.print('*');
                    }else {
                        System.out.print(' ');
                    }

                }
                System.out.println();

            }
        }

    }
    public static void main1(String[] args) {
        int a = 24;
        int b = 18;
        int c = a % b;
        while(c != 0) {
            a = b;
            b = c;
            c = a % b;
        }
        System.out.println(b);
    }


}
